﻿using JT808.Protocol.Extensions.JTActiveSafety.MessageBody;
using JT808.Protocol.Extensions.JTActiveSafety.Metadata;
using System.Collections.Generic;

namespace JTActiveSafety.Gateway
{
    /// <summary>
    /// 文件接收处理
    /// </summary>
    public interface IAttachFileRecvService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="terminalPhoneNo"></param>
        /// <param name="input"></param>
        void CreateAlarmAttachFileInfo(string terminalPhoneNo, JT808_0x1210 input);

        /// <summary>
        /// 
        /// </summary>
 
        /// <param name="input"></param>
        void AddFileReceiveRecord(JT808_0x1299 input);

        /// <summary>
        /// Check the attachment file for missing items
        /// </summary>
        /// <param name="fileName"></param>
        /// <param name="fileSize"></param>
        /// <param name="missingNodes">missing items</param>
        /// <returns></returns>
        CheckFileIntegrityResult CheckFileIntegrity(string fileName, out uint fileSize, out List<Node> missingNodes);
    }
}
